package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author oxiny
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("d_times_card")
public class TimesCard extends Model<TimesCard> {
    private Integer id;

    @ApiModelProperty("卡名")
    private String name;

    @ApiModelProperty("适用门店id")
    private String storeList;

    @ApiModelProperty("有效期类型 0购买后多少天到期 1指定时间到期")
    private Integer expiredType;

    @ApiModelProperty("购买后多少天到期")
    private Integer day;

    @ApiModelProperty("指定到期日期")
    private Date dueDate;

    @ApiModelProperty("指定服务可用")
    private String serviceList;

    @ApiModelProperty("数量限制 0不限 1限制数量")
    private Integer numLimit;

    @ApiModelProperty("限制数量")
    private Integer num;

    @ApiModelProperty("可否叠加")
    private Boolean overlay;

    @ApiModelProperty(value = "添加时间", hidden = true)
    private Date addTime;
}
